package cn.edu.zust.se.api.entity;

import cn.edu.zust.se.api.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * (TDisk)实体类
 *
 * @author makejava
 * @since 2023-12-12 16:50:12
 */
@Data
@TableName("t_disk")
public class Disk  implements Serializable {
    private static final long serialVersionUID = 908868667332958021L;
    /**
     * 网盘id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 容量
     */
    private String capacity;
    /**
     * 已使用容量
     */
    private String usedCapacity;

}

